/* ============================================
   RESPONSIVE STYLES - MOBILE & TABLET
   Organized by Section for Sewa Tempat Page
   ============================================ */

/* ========== GLOBAL RESPONSIVE SETTINGS ========== */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .section-padding {
        padding: 3rem 0 !important;
    }
}

/* ========== NAVBAR RESPONSIVE ========== */
/* ============================================================
   NAVBAR - Warung Bakakak
   Berlaku untuk SEMUA halaman (index, investasi, sewa tempat, dll)
   ============================================================ */


/* ============================================================
   BASE NAVBAR
   ============================================================ */

.navbar {
    background: linear-gradient(135deg, #5D2906 0%, #3A1A04 100%) !important;
    min-height: 70px;
    padding: 0;
    border-bottom: 3px solid #D2691E;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    z-index: 1050;
    overflow: visible;
}

.navbar .container {
    display: flex;
    align-items: center;
    min-height: 70px;
    max-width: 1200px;
    padding: 0 24px;
    overflow: visible;
}

body {
    padding-top: 70px;
}


/* ============================================================
   LOGO
   ============================================================ */

.navbar-brand {
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.navbar-brand:hover { transform: scale(1.05); }

.navbar-brand img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}


/* ============================================================
   COLLAPSE — nav di-center
   ============================================================ */

.navbar-collapse {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    overflow: visible;
}


/* ============================================================
   NAV LIST
   ============================================================ */

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    margin: 0 !important; /* batalkan ms-auto dari HTML */
}


/* ============================================================
   NAV LINK DESKTOP — putih tebal
   ============================================================ */

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #ffffff !important;
    padding: 8px 13px;
    border-radius: 8px;
    white-space: nowrap;
    background: transparent;
    letter-spacing: 0.2px;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

/* Garis bawah emas */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFD700;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 140, 0, 0.18);
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::after { width: 70%; }

/*
 * Aktif untuk nav-link biasa (halaman top-level).
 * Untuk halaman yang ada di dalam dropdown (investasi, loker,
 * sewa tempat, dll): beri .active di .dropdown-toggle "More",
 * JANGAN di nav-link lain.
 */
.navbar-nav .nav-link.active:not(.dropdown-toggle) {
    background: linear-gradient(135deg, #E67E22, #D2691E);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.5);
}

.navbar-nav .nav-link.active:not(.dropdown-toggle)::after { width: 70%; }

/*
 * Aktif untuk dropdown-toggle "More":
 * Tampil pill orange saat child-nya yang sedang dibuka.
 * Cara pakai: tambah class .active ke <a class="nav-link dropdown-toggle active">
 * pada halaman yang termasuk dalam dropdown.
 */
.navbar-nav .nav-link.dropdown-toggle.active {
    background: linear-gradient(135deg, #E67E22, #D2691E);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.5);
}

.navbar-nav .nav-link.dropdown-toggle.active::after { width: 0; }


/* ============================================================
   DROPDOWN TOGGLE CARET
   ============================================================ */

.navbar-nav .dropdown-toggle::after {
    border-top-color: #ffffff;
    transition: transform 0.3s ease;
    margin-left: 6px;
    vertical-align: middle;
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}


/* ============================================================
   DROPDOWN MENU — DESKTOP
   ============================================================ */

.dropdown-menu.dropdown-menu-orange {
    background: linear-gradient(145deg, #5D2906, #3A1A04);
    border: 1.5px solid rgba(255, 140, 0, 0.3);
    border-radius: 14px;
    padding: 10px 8px;
    min-width: 230px;
    position: fixed !important;
    top: 70px !important;
    right: calc((100vw - 1200px) / 2 + 24px) !important;
    left: auto !important;
    margin: 0;
    z-index: 99999;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 90, 10, 0.3);
    animation: ddFadeIn 0.22s ease forwards;
}

@keyframes ddFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-menu.dropdown-menu-orange .dropdown-item {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 11px 16px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    background: transparent;
    margin-bottom: 2px;
    transition: background 0.2s ease, border-color 0.2s ease,
                padding-left 0.2s ease, color 0.2s ease;
}

.dropdown-menu.dropdown-menu-orange .dropdown-item:hover {
    background: rgba(255, 140, 0, 0.18);
    border-left-color: #FF8C00;
    color: #ffffff;
    padding-left: 22px;
}

/* Icon — lebar tetap agar teks sejajar */
.dropdown-menu.dropdown-menu-orange .dropdown-item i {
    font-size: 1.05rem;
    width: 24px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
    margin-right: 10px !important;
    transition: transform 0.2s ease;
}

.dropdown-menu.dropdown-menu-orange .dropdown-item:hover i { transform: scale(1.15); }

/* Warna icon per class Bootstrap Icon */
.dropdown-menu.dropdown-menu-orange .dropdown-item .bi-graph-up       { color: #4ade80; filter: drop-shadow(0 0 4px rgba(74,222,128,0.6)); }
.dropdown-menu.dropdown-menu-orange .dropdown-item .bi-briefcase      { color: #60a5fa; filter: drop-shadow(0 0 4px rgba(96,165,250,0.6)); }
.dropdown-menu.dropdown-menu-orange .dropdown-item .bi-people         { color: #fb923c; filter: drop-shadow(0 0 4px rgba(251,146,60,0.6)); }
.dropdown-menu.dropdown-menu-orange .dropdown-item .bi-calendar-event { color: #fb923c; filter: drop-shadow(0 0 4px rgba(251,146,60,0.6)); }
.dropdown-menu.dropdown-menu-orange .dropdown-item .bi-envelope       { color: #38bdf8; filter: drop-shadow(0 0 4px rgba(56,189,248,0.6)); }
.dropdown-menu.dropdown-menu-orange .dropdown-item .bi-newspaper      { color: #f472b6; filter: drop-shadow(0 0 4px rgba(244,114,182,0.6)); }
.dropdown-menu.dropdown-menu-orange .dropdown-item .bi-tag            { color: #f472b6; filter: drop-shadow(0 0 4px rgba(244,114,182,0.6)); }

.dropdown-menu.dropdown-menu-orange .dropdown-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,140,0,0.45), transparent);
    margin: 5px 8px;
    opacity: 1;
}

/* Item aktif di dalam dropdown */
.dropdown-menu.dropdown-menu-orange .dropdown-item.active {
    background: rgba(230, 126, 34, 0.22);
    border-left-color: #E67E22;
    color: #FFD700;
    font-weight: 600;
}


/* ============================================================
   HAMBURGER TOGGLER — coklat semu orange, garis putih tebal
   ============================================================ */

.navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    background: rgba(110, 55, 15, 0.7);      /* coklat semu orange */
    border: 2px solid rgba(210, 105, 30, 0.75);
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar-toggler:hover {
    background: rgba(150, 70, 10, 0.8);
    border-color: #D2691E;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.3);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.4);
}

/* Garis hamburger — putih, stroke tebal */
.navbar-toggler-icon {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.8' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}


/* ============================================================
   TABLET & MOBILE  (≤ 991px)
   ============================================================ */

@media screen and (max-width: 991px) {

    .navbar,
    .navbar.fixed-top { min-height: 64px; }

    .navbar .container {
        min-height: 64px;
        padding: 0 16px;
        justify-content: space-between;
        flex-wrap: nowrap;
        position: relative;
    }

    .navbar-brand img { height: 42px; }

    /* ── COLLAPSE PANEL MOBILE ── */
    nav.navbar.fixed-top .navbar-collapse {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        justify-content: flex-start;
        background: linear-gradient(160deg, #2A1204 0%, #3D1A06 100%);
        border-top: 2px solid #D2691E;
        border-bottom: 3px solid rgba(210, 105, 30, 0.4);
        border-radius: 0 0 20px 20px;
        padding: 12px 0 16px;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1040;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    }

    nav.navbar.fixed-top .navbar-collapse.show {
        animation: mobileMenuIn 0.25s ease forwards;
    }

    @keyframes mobileMenuIn {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* ── NAV LIST MOBILE ── */
    nav.navbar.fixed-top .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0 12px;
        gap: 2px;
        margin: 0 !important;
    }

    nav.navbar.fixed-top .navbar-nav .nav-item { width: 100%; }

    /* ── NAV LINK MOBILE — rata tengah ── */
    nav.navbar.fixed-top .navbar-nav .nav-link {
        font-size: 1rem;
        font-weight: 700;
        padding: 13px 16px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-bottom: 1px solid rgba(210, 105, 30, 0.2);
        white-space: normal;
        color: #ffffff !important;
        background: transparent;
        transform: none;
    }

    nav.navbar.fixed-top .navbar-nav .nav-link::after { display: none; }

    nav.navbar.fixed-top .navbar-nav .nav-link:hover {
        background: rgba(210, 105, 30, 0.18);
        color: #FFD700 !important;
        transform: none;
    }

    /* Aktif nav link biasa */
    nav.navbar.fixed-top .navbar-nav .nav-link.active:not(.dropdown-toggle) {
        background: rgba(230, 126, 34, 0.25);
        color: #FFD700 !important;
        border-left: 4px solid #D2691E;
        border-right: 4px solid #D2691E;
        border-bottom: 1px solid rgba(210, 105, 30, 0.2);
        box-shadow: none;
        border-radius: 10px;
    }

    /* Aktif dropdown-toggle "More" */
    nav.navbar.fixed-top .navbar-nav .nav-link.dropdown-toggle.active {
        background: rgba(230, 126, 34, 0.25);
        color: #FFD700 !important;
        border-left: 4px solid #D2691E;
        border-right: 4px solid #D2691E;
        border-bottom: 1px solid rgba(210, 105, 30, 0.2);
        box-shadow: none;
        border-radius: 10px;
    }

    /* ── DROPDOWN TOGGLE MOBILE — sembunyikan caret default ── */
    nav.navbar.fixed-top .navbar-nav .dropdown-toggle::after { display: none; }

    nav.navbar.fixed-top .navbar-nav .dropdown-toggle::before {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
        margin-left: 8px;
        transition: transform 0.25s ease, color 0.25s ease;
    }

    nav.navbar.fixed-top .navbar-nav .nav-item.show .dropdown-toggle::before {
        transform: rotate(180deg);
        color: #FFD700;
    }

    /* ── DROPDOWN MENU MOBILE ── */
    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        float: none;
        width: 100%;
        background: rgba(20, 10, 4, 0.92);
        border: 1px solid rgba(210, 105, 30, 0.3);
        border-left: 4px solid #D2691E;
        border-radius: 12px;
        padding: 6px 0;
        margin: 4px 0 8px;
        box-shadow: none;
        animation: none;
    }

    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange.show {
        animation: ddSlideDown 0.2s ease forwards;
    }

    @keyframes ddSlideDown {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* ── DROPDOWN ITEM MOBILE — rata kiri, icon sejajar ── */
    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 24px;
        border-bottom: 1px solid rgba(210, 105, 30, 0.12);
        border-left: 3px solid transparent;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.95rem;
        margin-bottom: 0;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-item:last-child {
        border-bottom: none;
    }

    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-item:hover {
        background: rgba(210, 105, 30, 0.2);
        border-left-color: #FF8C00;
        color: #FFD700;
        padding-left: 24px;
    }

    /* Icon mobile — lebar tetap */
    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-item i {
        font-size: 1.05rem;
        width: 24px;
        min-width: 24px;
        text-align: center;
        flex-shrink: 0;
        line-height: 1;
        margin-right: 10px !important;
    }

    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-item.active {
        background: rgba(230, 126, 34, 0.2);
        border-left-color: #E67E22;
        color: #FFD700;
        font-weight: 600;
    }

    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-divider {
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(210,105,30,0.4), transparent);
        margin: 4px 8px;
        opacity: 1;
    }
}


/* ============================================================
   MOBILE  (≤ 767px)
   ============================================================ */

@media screen and (max-width: 767px) {

    body { padding-top: 58px; }

    .navbar,
    .navbar.fixed-top          { min-height: 58px; }
    .navbar .container          { min-height: 58px; }
    .navbar-brand img           { height: 38px; }
    .navbar-toggler             { width: 38px; height: 38px; }

    nav.navbar.fixed-top .navbar-collapse { top: 58px; }
}


/* ============================================================
   MOBILE KECIL  (≤ 575px)
   ============================================================ */

@media screen and (max-width: 575px) {

    body { padding-top: 54px; }

    .navbar,
    .navbar.fixed-top          { min-height: 54px; }
    .navbar .container          { min-height: 54px; padding: 0 12px; }
    .navbar-brand img           { height: 34px; }
    .navbar-toggler             { width: 36px; height: 36px; }
    .navbar-toggler-icon        { width: 18px; height: 18px; }

    nav.navbar.fixed-top .navbar-collapse {
        top: 54px;
        border-radius: 0 0 16px 16px;
    }

    nav.navbar.fixed-top .navbar-nav { padding: 0 8px; }

    nav.navbar.fixed-top .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 11px 14px;
    }

    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-item {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-item:hover {
        padding-left: 18px;
    }
}


/* ============================================================
   LANDSCAPE  (tinggi < 550px)
   ============================================================ */

@media screen and (max-height: 550px) and (orientation: landscape) {

    nav.navbar.fixed-top .navbar-collapse {
        max-height: calc(100vh - 54px);
        overflow-y: auto;
    }

    nav.navbar.fixed-top .navbar-nav .nav-link {
        padding: 9px 14px;
        font-size: 0.9rem;
    }

    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-item {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}


/* ============================================================
   TOUCH DEVICE
   ============================================================ */

@media (hover: none) and (pointer: coarse) {

    .navbar-nav .nav-link:hover { transform: none; }

    nav.navbar.fixed-top .navbar-nav .nav-link:active {
        background: rgba(210, 105, 30, 0.22);
    }

    nav.navbar.fixed-top .navbar-nav .dropdown-menu.dropdown-menu-orange .dropdown-item:active {
        background: rgba(210, 105, 30, 0.28);
        color: #FFD700;
    }
}


/* ========== SECTION 1: HERO RESPONSIVE ========== */
/* ============================================================
   SEWA HERO SECTION - Responsive (Tablet, Mobile, Landscape)
   Acuan desktop: sewa-hero-desktop.css
   ============================================================ */


/* ============================================================
   TABLET  (768px – 991px)
   ============================================================ */

@media (min-width: 768px) and (max-width: 991px) {

    .sewa-hero-section {
        /*
         * PERBAIKAN UTAMA:
         * Jangan pakai height:95vh + padding-top:80px secara bersamaan
         * karena padding menambah ruang di luar 95vh → konten overflow
         * dan section berikutnya muncul di bawah.
         *
         * Solusi: height tetap 100vh, padding-top = tinggi navbar (64px),
         * box-sizing:border-box agar padding dihitung di dalam 100vh.
         */
        height: 100vh;
        min-height: 100vh;
        box-sizing: border-box;
        padding-top: 64px;       /* tinggi navbar tablet */
    }

    .sewa-hero-section .container {
        transform: none;         /* reset translateY(-4%) desktop */
    }

    .sewa-hero-section h1,
    .sewa-hero-section .display-2.fw-bold {
        font-size: 2rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }

    .logo-container {
        margin: 0.5rem 0 0.8rem;
    }

    .logo-container img {
        height: 85px;
    }

    .sewa-hero-section .lead {
        font-size: 0.98rem;
        padding: 14px 20px;
        max-width: 640px;
    }
}


/* ============================================================
   MOBILE  (≤ 767px)
   ============================================================ */

@media (max-width: 767px) {

    .sewa-hero-section {
        height: 100svh;          /* svh: safe viewport = tidak diblok browser chrome */
        min-height: 480px;       /* fallback jika browser belum support svh */
        box-sizing: border-box;
        padding-top: 58px;       /* tinggi navbar mobile */
    }

    .sewa-hero-section .container {
        transform: none;
    }

    .sewa-hero-section h1,
    .sewa-hero-section .display-2.fw-bold {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }

    .logo-container {
        margin: 0.5rem 0 0.7rem;
    }

    .logo-container img {
        height: 72px;
    }

    .sewa-hero-section .lead {
        font-size: 0.9rem;
        padding: 12px 16px;
        line-height: 1.55;
        max-width: 100%;
    }
}


/* ============================================================
   MOBILE KECIL  (≤ 575px)
   ============================================================ */

@media (max-width: 575px) {

    .sewa-hero-section {
        height: 100svh;
        min-height: 460px;
        box-sizing: border-box;
        padding-top: 54px;       /* tinggi navbar mobile kecil */
    }

    .sewa-hero-section h1,
    .sewa-hero-section .display-2.fw-bold {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.4rem !important;
    }

    .logo-container {
        margin: 0.4rem 0 0.6rem;
    }

    .logo-container img {
        height: 62px;
    }

    .sewa-hero-section .lead {
        font-size: 0.84rem;
        padding: 10px 14px;
        line-height: 1.5;
    }
}


/* ============================================================
   MOBILE SANGAT KECIL  (≤ 380px)
   ============================================================ */

@media (max-width: 380px) {

    .sewa-hero-section {
        min-height: 440px;
        padding-top: 54px;
    }

    .sewa-hero-section h1,
    .sewa-hero-section .display-2.fw-bold {
        font-size: 1.2rem !important;
        margin-bottom: 0.35rem !important;
    }

    .logo-container img {
        height: 54px;
    }

    .sewa-hero-section .lead {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}


/* ============================================================
   LANDSCAPE  (tinggi < 500px)
   ============================================================ */

@media (max-height: 500px) and (orientation: landscape) {

    .sewa-hero-section {
        /*
         * Di landscape HP tinggi layar sangat pendek (~360px).
         * Pakai height:auto + min-height:100vh agar konten tidak
         * terpotong, tapi section tetap minimal full tinggi layar.
         */
        height: auto;
        min-height: 100vh;
        box-sizing: border-box;
        padding-top: 54px;
        padding-bottom: 24px;
    }

    .sewa-hero-section .container {
        transform: none;
        align-items: flex-start;
        padding-top: 16px;
    }

    .sewa-hero-section h1,
    .sewa-hero-section .display-2.fw-bold {
        font-size: 1.1rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.2 !important;
    }

    .logo-container {
        margin: 0.3rem 0 0.5rem;
    }

    .logo-container img {
        height: 48px;
    }

    .sewa-hero-section .lead {
        font-size: 0.78rem;
        padding: 8px 12px;
        line-height: 1.45;
        max-width: 560px;
    }
}


/* ============================================================
   FALLBACK — browser tidak support svh
   (gunakan 100vh dengan -webkit-fill-available sebagai cadangan)
   ============================================================ */

@supports not (height: 100svh) {

    @media (max-width: 767px) {
        .sewa-hero-section {
            height: 100vh;
            height: -webkit-fill-available;
        }
    }
}


/* ========== SECTION 2: WHY CHOOSE US RESPONSIVE ========== */
@media (max-width: 991px) {
    .why-choose-section {
        padding: 3.5rem 0 !important;
    }
    
    /* Section Header */
    .why-choose-section h2.display-5 {
        font-size: 2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .why-choose-section .lead {
        font-size: 1.1rem !important;
        margin-bottom: 2.5rem !important;
        padding: 0 1rem;
    }
    
    /* HIDE DESKTOP GRID, SHOW MOBILE CAROUSEL */
    .why-choose-section .d-none.d-lg-block {
        display: none !important;
    }
    
    .why-choose-section .d-block.d-lg-none {
        display: block !important;
    }
    
    /* SWIPER CAROUSEL STYLING */
    .whyChooseCarousel {
        padding: 0 15px 40px;
        position: relative;
    }
    
    .whyChooseCarousel .swiper-wrapper {
        padding: 10px 0;
    }
    
    .whyChooseCarousel .swiper-slide {
        height: auto;
        padding: 5px;
    }
    
    /* Card Styling */
    .whyChooseCarousel .card {
        height: 100%;
        background: #3a2318;
        border: 2px solid #FF8C00 !important;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        margin: 0;
    }
    
    .whyChooseCarousel .card-body {
        padding: 1.5rem;
    }
    
    .whyChooseCarousel .icon-wrapper {
        width: 65px;
        height: 65px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.2rem;
        border: 2px solid rgba(255, 140, 0, 0.3);
    }
    
    .whyChooseCarousel .icon-wrapper i {
        font-size: 1.6rem;
        color: #FFFFFF !important;
    }
    
    .whyChooseCarousel .card-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #FFFFFF !important;
        margin-bottom: 0.8rem;
    }
    
    .whyChooseCarousel .card-text {
        font-size: 0.95rem;
        color: #FFFFFF !important;
        line-height: 1.5;
        opacity: 0.9;
    }
    
    /* REMOVE ARROW BUTTONS */
    .whyChooseCarousel .swiper-button-next,
    .whyChooseCarousel .swiper-button-prev {
        display: none !important;
    }
    
    /* PAGINATION DOTS - POSITION FIXED */
    .whyChooseCarousel .swiper-pagination {
        position: absolute !important;
        bottom: 10px !important;
        left: 0 !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .whyChooseCarousel .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.4);
        opacity: 1;
        transition: all 0.3s ease;
        margin: 0 4px !important;
    }
    
    .whyChooseCarousel .swiper-pagination-bullet-active {
        background: #FF8C00;
        transform: scale(1.2);
    }
}

/* SMALL TABLET (576px - 767px) */
@media (max-width: 767px) {
    .why-choose-section {
        padding: 3rem 0 !important;
    }
    
    .why-choose-section h2.display-5 {
        font-size: 1.8rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .why-choose-section .lead {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .whyChooseCarousel {
        padding: 0 10px 35px;
    }
    
    .whyChooseCarousel .card-body {
        padding: 1.3rem;
    }
    
    .whyChooseCarousel .icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .whyChooseCarousel .icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .whyChooseCarousel .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .whyChooseCarousel .card-text {
        font-size: 0.9rem;
    }
    
    .whyChooseCarousel .swiper-pagination {
        bottom: 5px !important;
    }
    
    .whyChooseCarousel .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
    }
}

/* MOBILE (Up to 575px) */
@media (max-width: 575px) {
    .why-choose-section {
        padding: 2.5rem 0 !important;
    }
    
    .why-choose-section h2.display-5 {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .why-choose-section .lead {
        font-size: 0.9rem !important;
        margin-bottom: 1.8rem !important;
        padding: 0 0.5rem;
    }
    
    .whyChooseCarousel {
        padding: 0 5px 30px;
    }
    
    .whyChooseCarousel .swiper-slide {
        padding: 3px;
    }
    
    .whyChooseCarousel .card {
        border-width: 1.5px !important;
        border-radius: 12px;
    }
    
    .whyChooseCarousel .card-body {
        padding: 1rem;
    }
    
    .whyChooseCarousel .icon-wrapper {
        width: 55px;
        height: 55px;
        margin-bottom: 0.8rem;
    }
    
    .whyChooseCarousel .icon-wrapper i {
        font-size: 1.4rem;
    }
    
    .whyChooseCarousel .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .whyChooseCarousel .card-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .whyChooseCarousel .swiper-pagination {
        bottom: 0 !important;
    }
    
    .whyChooseCarousel .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px !important;
    }
}

/* EXTRA SMALL MOBILE (Up to 375px) */
@media (max-width: 375px) {
    .why-choose-section {
        padding: 2rem 0 !important;
    }
    
    .why-choose-section h2.display-5 {
        font-size: 1.4rem !important;
    }
    
    .why-choose-section .lead {
        font-size: 0.85rem !important;
    }
    
    .whyChooseCarousel .card-body {
        padding: 0.8rem;
    }
    
    .whyChooseCarousel .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .whyChooseCarousel .icon-wrapper i {
        font-size: 1.3rem;
    }
    
    .whyChooseCarousel .card-title {
        font-size: 0.95rem;
    }
    
    .whyChooseCarousel .card-text {
        font-size: 0.8rem;
    }
}

/* ========== SECTION 3: VENUE GALLERY RESPONSIVE ========== */
@media (max-width: 1200px) {
    /* Change from 4 columns to 2 columns on tablet */
    .venue-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .venue-card {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .venue-gallery-section {
        padding: 3rem 0 !important;
    }
    
    .venue-gallery-section h2.display-5 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }
    
    .venue-gallery-section .lead {
        font-size: 1rem !important;
        margin-bottom: 2rem;
    }
    
    /* Single column for mobile */
    .venue-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .venue-row:first-child {
        margin-bottom: 15px;
    }
    
    .venue-card {
        height: 250px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .venue-card-overlay {
        padding: 20px;
    }
    
    .venue-card-content h5 {
        font-size: 1.1rem;
    }
    
    .venue-card-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .venue-gallery-section h2.display-5 {
        font-size: 1.6rem !important;
    }
    
    .venue-gallery-section .lead {
        font-size: 0.9rem !important;
    }
    
    .venue-card {
        height: 220px;
    }
    
    .venue-card-overlay {
        padding: 15px;
    }
    
    .venue-card-content h5 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .venue-card-content p {
        font-size: 0.8rem;
    }
}



/* ========== SECTION 4: PACKAGE PROMO RESPONSIVE ========== */
/* ============================================================
   PAKET EVENT — RESPONSIVE CSS
   Breakpoints:
   1. Tablet        (max-width: 992px)
   2. Mobile Medium (max-width: 768px)
   3. Mobile Small  (max-width: 576px)
   4. Mobile XS     (max-width: 400px)
   ============================================================ */


/* ============================================================
   1. TABLET (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {

    /* Section */
    .paket-event-section {
        padding: 4rem 0 3rem;
    }

    /* Header */
    .paket-title {
        font-size: 2.2rem;
    }

    /* Swiper wrapper — kurangi padding horizontal */
    .paket-swiper-wrapper {
        padding: 0.5rem 52px 2.5rem;
    }

    /* Nav button posisi lebih rapat */
    .paket-swiper-prev { left: 4px; }
    .paket-swiper-next { right: 4px; }

    /* Card */
    .paket-card-header {
        padding: 1.4rem 1.2rem 1rem;
    }

    .paket-cocok,
    .paket-menu,
    .paket-fasilitas,
    .paket-divider {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .paket-cabang-info {
        padding: 0.65rem 1.2rem;
    }

    .paket-btn-wa {
        width: calc(100% - 2.4rem);
        margin: 0.5rem 1.2rem 1.2rem;
    }

    /* Bottom note */
    .paket-bottom-note {
        padding: 1.2rem 1.4rem;
    }
}


/* ============================================================
   2. MOBILE MEDIUM (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Section */
    .paket-event-section {
        padding: 3.5rem 0 2.5rem;
    }

    /* Header */
    .paket-header {
        margin-bottom: 2rem;
    }

    .paket-title {
        font-size: 1.9rem;
    }

    /* Swiper wrapper:
       Kurangi drastis padding horizontal agar card lebih lebar.
       Nav button dipindah ke luar area card dengan nilai kecil. */
    .paket-swiper-wrapper {
        padding: 0.5rem 44px 2.5rem;
    }

    /* Nav button ukuran sedikit lebih kecil */
    .paket-swiper-prev,
    .paket-swiper-next {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .paket-swiper-prev { left: 2px; }
    .paket-swiper-next { right: 2px; }

    /* Card padding */
    .paket-card-header {
        padding: 1.2rem 1rem 0.9rem;
    }

    .paket-cocok,
    .paket-menu,
    .paket-fasilitas,
    .paket-divider {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .paket-cabang-info {
        padding: 0.6rem 1rem;
    }

    .paket-btn-wa {
        width: calc(100% - 2rem);
        margin: 0.5rem 1rem 1.1rem;
        font-size: 0.82rem;
        padding: 0.7rem 0.9rem;
    }

    /* Icon wrap sedikit lebih kecil */
    .paket-icon-wrap {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    /* Nama & tagline */
    .paket-name {
        font-size: 1.2rem;
    }

    .paket-tagline {
        font-size: 0.77rem;
    }

    /* Menu & fasilitas item */
    .menu-list li,
    .fasilitas-list li {
        font-size: 0.80rem;
    }

    /* Bottom note */
    .paket-bottom-note {
        padding: 1rem 1.1rem;
        margin: 0.8rem 0.5rem 0;
    }

    .paket-bottom-note p {
        font-size: 0.82rem;
    }

    .kebijakan-pill {
        font-size: 0.72rem;
        padding: 0.26rem 0.65rem;
    }

    /* Nonaktifkan hover 3D di touch device */
    .paket-card:hover {
        transform: none;
        box-shadow: var(--shadow-card-idle);
    }

    .paket-card.is-popular:hover {
        box-shadow:
            0 2px 0 rgba(201,168,76,0.30),
            0 4px 0 rgba(0,0,0,0.40),
            0 6px 0 rgba(0,0,0,0.28),
            0 8px 0 rgba(0,0,0,0.16),
            0 16px 38px rgba(0,0,0,0.55),
            inset 0 0 50px rgba(201,168,76,0.03);
    }
}


/* ============================================================
   3. MOBILE SMALL (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {

    /* Section */
    .paket-event-section {
        padding: 3rem 0 2rem;
    }

    /* Header */
    .paket-header {
        margin-bottom: 1.6rem;
    }

    .paket-title {
        font-size: 1.65rem;
    }

    /* KEY FIX: Swiper wrapper padding minimal agar card selebar mungkin.
       Nav button tetap ada, cukup overlay tipis di tepi card. */
    .paket-swiper-wrapper {
        padding: 0.5rem 36px 2.2rem;
    }

    /* Nav button lebih kecil & nempel ke tepi */
    .paket-swiper-prev,
    .paket-swiper-next {
        width: 32px;
        height: 32px;
        font-size: 0.80rem;
    }

    .paket-swiper-prev { left: 0; }
    .paket-swiper-next { right: 0; }

    /* Card padding lebih compact */
    .paket-card-header {
        padding: 1rem 0.9rem 0.8rem;
    }

    .paket-cocok {
        padding: 0.75rem 0.9rem 0.45rem;
    }

    .paket-menu {
        padding: 0.5rem 0.9rem 0.4rem;
    }

    .paket-fasilitas {
        padding: 0.4rem 0.9rem 0.5rem;
    }

    .paket-divider {
        padding: 0.38rem 0.9rem;
    }

    .paket-cabang-info {
        padding: 0.55rem 0.9rem;
    }

    .paket-btn-wa {
        width: calc(100% - 1.8rem);
        margin: 0.45rem 0.9rem 1rem;
        font-size: 0.80rem;
        padding: 0.65rem 0.8rem;
    }

    /* Typography compact */
    .paket-name {
        font-size: 1.15rem;
    }

    .paket-tagline {
        font-size: 0.75rem;
    }

    .cocok-tag {
        font-size: 0.70rem;
        padding: 0.18rem 0.50rem;
    }

    .menu-list li,
    .fasilitas-list li {
        font-size: 0.78rem;
        padding: 0.20rem 0;
    }

    .cabang-info-row {
        font-size: 0.75rem;
    }

    /* Ribbon posisi */
    .paket-ribbon {
        top: 12px;
        right: -22px;
        font-size: 0.60rem;
        padding: 0.22rem 1.8rem;
    }

    /* Popular badge */
    .popular-badge {
        font-size: 0.65rem;
        padding: 0.22rem 0.85rem;
    }

    /* Pagination bullets */
    .paket-swiper-pagination .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
    }

    .paket-swiper-pagination .swiper-pagination-bullet-active {
        width: 18px;
    }

    /* Bottom note */
    .paket-bottom-note {
        padding: 0.9rem 1rem;
        margin: 0.7rem 0.25rem 0;
        border-radius: 10px;
    }

    .paket-bottom-note p {
        font-size: 0.80rem;
        margin-bottom: 0.6rem;
    }

    .kebijakan-pills {
        gap: 0.35rem;
    }

    .kebijakan-pill {
        font-size: 0.70rem;
        padding: 0.24rem 0.58rem;
    }
}


/* ============================================================
   4. MOBILE EXTRA SMALL (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {

    /* Header */
    .paket-title {
        font-size: 1.45rem;
    }

    /* KEY FIX: Padding seminimal mungkin, nav button overlay card sepenuhnya
       Ini pilihan terbaik di layar < 400px. */
    .paket-swiper-wrapper {
        padding: 0.5rem 28px 2rem;
    }

    .paket-swiper-prev,
    .paket-swiper-next {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
        background: rgba(44, 16, 3, 0.85);
        border-color: rgba(210, 105, 30, 0.40);
    }

    .paket-swiper-prev { left: 0; }
    .paket-swiper-next { right: 0; }

    /* Card */
    .paket-card-header {
        padding: 0.9rem 0.8rem 0.75rem;
    }

    .paket-cocok,
    .paket-menu,
    .paket-fasilitas,
    .paket-divider,
    .paket-cabang-info {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .paket-btn-wa {
        width: calc(100% - 1.6rem);
        margin: 0.4rem 0.8rem 0.9rem;
        font-size: 0.78rem;
        padding: 0.60rem 0.75rem;
    }

    .paket-name {
        font-size: 1.08rem;
    }

    .paket-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .menu-list li,
    .fasilitas-list li {
        font-size: 0.76rem;
    }

    .cocok-tag {
        font-size: 0.68rem;
    }

    /* Bottom note compact */
    .paket-bottom-note {
        margin: 0.5rem 0 0;
        padding: 0.8rem 0.9rem;
    }

    .kebijakan-pill {
        font-size: 0.68rem;
        padding: 0.22rem 0.50rem;
    }
}



/* ========== SECTION 5: EVENT PORTFOLIO RESPONSIVE ========== */
/* ============================================================
   PORTO SECTION — RESPONSIVE CSS
   Breakpoints:
   1. Tablet        (max-width: 992px)
   2. Mobile Medium (max-width: 768px)
   3. Mobile Small  (max-width: 576px)
   4. Mobile XS     (max-width: 400px)
   5. Landscape     (max-width: 768px + landscape)
   ============================================================ */


/* ============================================================
   1. TABLET (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {

    /* Section */
    .porto-section {
        padding: 4rem 0;
    }

    /* Header */
    .porto-title {
        font-size: 2.1rem;
    }

    .porto-subtitle {
        font-size: 0.90rem;
    }

    /* Carousel wrapper — sedikit kurangi gap & padding */
    .porto-carousel-wrapper {
        gap: 12px;
        padding: 0 12px;
    }

    /* Nav button */
    .porto-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    /* Card — sedikit lebih kecil dari desktop */
    .porto-card {
        width: 220px;
    }

    /* Cards gap */
    .porto-cards-wrapper {
        gap: 18px;
    }
}


/* ============================================================
   2. MOBILE MEDIUM (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Section */
    .porto-section {
        padding: 3.5rem 0;
    }

    /* Header */
    .porto-header {
        margin-bottom: 2rem;
    }

    .porto-title {
        font-size: 1.85rem;
    }

    .porto-subtitle {
        font-size: 0.88rem;
        padding: 0 0.5rem;
    }

    .porto-eyebrow {
        font-size: 0.70rem;
        padding: 0.35rem 1rem;
    }

    /* KEY FIX: Carousel wrapper
       Hapus padding horizontal besar agar scroll container selebar mungkin.
       Nav button tetap ada sebagai flex item di kiri-kanan. */
    .porto-carousel-wrapper {
        gap: 8px;
        padding: 0 8px;
    }

    /* Nav button lebih kecil */
    .porto-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    /* KEY FIX: Card lebih lebar di mobile
       Gunakan calc berbasis vw agar card mengisi layar secara proporsional.
       Sisakan ruang untuk 1 card berikutnya agar user tahu bisa scroll. */
    .porto-card {
        width: calc(72vw - 16px);
        max-width: 280px;
    }

    /* Cards gap lebih kecil */
    .porto-cards-wrapper {
        gap: 14px;
    }

    /* Scroll container padding bawah (ruang shadow card) */
    .porto-scroll-container {
        padding: 16px 0 36px;
    }

    /* Nonaktifkan hover transform di touch device */
    .porto-card:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

    .porto-card:hover .porto-card-img img {
        transform: none;
        filter: brightness(0.9) saturate(1.05);
    }

    .porto-card:hover .porto-card-overlay {
        opacity: 0;
        transform: translateY(20px);
    }
}


/* ============================================================
   3. MOBILE SMALL (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {

    /* Section */
    .porto-section {
        padding: 3rem 0;
    }

    /* Header */
    .porto-header {
        margin-bottom: 1.6rem;
    }

    .porto-title {
        font-size: 1.60rem;
    }

    .porto-subtitle {
        font-size: 0.84rem;
        padding: 0 0.75rem;
    }

    /* Carousel wrapper — padding minimal */
    .porto-carousel-wrapper {
        gap: 6px;
        padding: 0 6px;
    }

    /* Nav button lebih kecil lagi */
    .porto-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
    }

    /* KEY FIX: Card lebar hampir penuh layar
       80vw = card utama hampir full, sisa 20vw untuk peek card berikutnya. */
    .porto-card {
        width: calc(80vw - 12px);
        max-width: 300px;
    }

    /* Cards gap */
    .porto-cards-wrapper {
        gap: 12px;
    }

    /* Scroll container */
    .porto-scroll-container {
        padding: 14px 0 30px;
    }

    /* Overlay content font compact */
    .porto-overlay-title {
        font-size: 0.85rem;
    }

    .porto-overlay-desc {
        font-size: 0.68rem;
    }

    .porto-overlay-meta {
        font-size: 0.62rem;
        gap: 0.6rem;
    }

    .porto-overlay-category {
        font-size: 0.58rem;
        padding: 0.18rem 0.5rem;
    }

    /* Badge */
    .porto-card-badge {
        font-size: 0.58rem;
        padding: 0.18rem 0.5rem;
        top: 10px;
        right: 10px;
    }
}


/* ============================================================
   4. MOBILE EXTRA SMALL (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {

    /* Section */
    .porto-section {
        padding: 2.5rem 0;
    }

    /* Header */
    .porto-title {
        font-size: 1.40rem;
    }

    .porto-subtitle {
        font-size: 0.80rem;
    }

    /* Carousel wrapper — padding seminimal mungkin */
    .porto-carousel-wrapper {
        gap: 4px;
        padding: 0 4px;
    }

    /* Nav button paling kecil */
    .porto-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }

    /* KEY FIX: Card lebar maksimal di layar kecil
       85vw — hampir full screen, cukup peek sedikit card berikutnya. */
    .porto-card {
        width: calc(85vw - 8px);
        max-width: 280px;
    }

    /* Cards gap */
    .porto-cards-wrapper {
        gap: 10px;
    }

    /* Scroll container */
    .porto-scroll-container {
        padding: 12px 0 28px;
    }

    /* Overlay compact */
    .porto-card-overlay {
        padding: 1rem;
    }

    .porto-overlay-title {
        font-size: 0.80rem;
        margin-bottom: 0.2rem;
    }

    .porto-overlay-desc {
        font-size: 0.65rem;
        margin-bottom: 0.35rem;
    }

    .porto-overlay-meta {
        font-size: 0.60rem;
        gap: 0.5rem;
    }

    .porto-overlay-category {
        font-size: 0.55rem;
        margin-bottom: 0.3rem;
    }

    /* Badge */
    .porto-card-badge {
        font-size: 0.55rem;
        padding: 0.16rem 0.45rem;
        top: 8px;
        right: 8px;
    }
}


/* ============================================================
   5. LANDSCAPE MODE (≤ 768px + landscape)
   ============================================================ */
@media (max-width: 768px) and (orientation: landscape) {

    /* Section lebih compact */
    .porto-section {
        padding: 2rem 0;
    }

    /* Header compact */
    .porto-header {
        margin-bottom: 1.2rem;
    }

    .porto-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .porto-subtitle {
        font-size: 0.80rem;
        display: none; /* Sembunyikan di landscape untuk hemat ruang vertikal */
    }

    /* Card lebih pendek di landscape — aspect ratio override */
    .porto-card {
        width: 180px;
        aspect-ratio: 3 / 4; /* Lebih lebar proporsinya di landscape */
    }

    /* Nav button */
    .porto-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* Scroll container padding bawah lebih kecil */
    .porto-scroll-container {
        padding: 10px 0 24px;
    }
}
/* ========================================
   DESKTOP DEFAULT
   ======================================== */

@media (min-width: 993px) {
    .portfolio-card {
        height: 300px;
        width: 100%;
    }
}



/* ========== SECTION 7: FAQ RESPONSIVE ========== */
/* ============================================================
   FAQ SECTION - Responsive
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {

    .faq-section {
        padding: 3.5rem 0;
    }

    .faq-section .text-center h2.display-5.fw-bold.mb-3.text-white {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .faq-section .text-center .lead.text-warning {
        font-size: 1rem !important;
    }

    .faq-scroll-wrapper {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 0 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .faq-scroll-content {
        gap: 1rem;
        flex-wrap: nowrap;
        /* container Bootstrap tablet punya padding 15px kiri-kanan = 30px total */
        /* 2 card + 1 gap(1rem=16px) pas dalam container */
        padding: 0.5rem;
    }

    /* Lebar container Bootstrap tablet ≈ 100vw - 30px
       2 card = (container - gap) / 2 = (100vw - 30px - 16px) / 2 */
    .faq-scroll-card {
        min-width: calc((100vw - 62px) / 2);
        max-width: calc((100vw - 62px) / 2);
        padding: 1.5rem !important;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .faq-scroll-icon        { width: 68px; height: 68px; }
    .faq-scroll-icon i      { font-size: 1.9rem !important; }
    .faq-scroll-title       { font-size: 1.15rem !important; }
    .faq-scroll-text        { font-size: 0.9rem !important; }
    .faq-scroll-badge       { font-size: 0.8rem; }
}


/* ============================================================
   MOBILE (≤ 767px) — 1 card penuh
   ============================================================ */
@media (max-width: 767px) {

    .faq-section {
        padding: 2.8rem 0;
    }

    .faq-section .text-center h2.display-5.fw-bold.mb-3.text-white {
        font-size: 1.55rem !important;
        line-height: 1.3 !important;
        letter-spacing: 0;
    }

    .faq-section .text-center .lead.text-warning {
        font-size: 0.95rem !important;
    }

    .faq-scroll-wrapper {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* hapus padding kiri-kanan agar card bisa full width */
        padding: 1rem 0 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .faq-scroll-content {
        gap: 0.75rem;
        flex-wrap: nowrap;
        /* padding-left = padding container Bootstrap (15px)
           agar card mulai sejajar teks section */
        padding: 0.5rem 15px;
    }

    /* 1 card = lebar container = 100vw - 2×15px padding Bootstrap container */
    .faq-scroll-card {
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
        padding: 1.3rem !important;
        border-radius: 16px;
        box-sizing: border-box;
        overflow: hidden;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .faq-scroll-icon        { width: 60px; height: 60px; }
    .faq-scroll-icon i      { font-size: 1.65rem !important; }
    .faq-scroll-title       { font-size: 1.05rem !important; }
    .faq-scroll-text        {
        font-size: 0.86rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.1rem !important;
    }
    .faq-scroll-badge       { font-size: 0.76rem; padding: 0.35rem 0.9rem; }

    .faq-cta-card           { padding: 1.8rem 1.1rem !important; }
    .faq-cta-title          { font-size: 1.3rem !important; }
    .faq-cta-text           { font-size: 0.92rem !important; }
}


/* ============================================================
   MOBILE KECIL (≤ 575px)
   ============================================================ */
@media (max-width: 575px) {

    .faq-section {
        padding: 2.4rem 0;
    }

    .faq-section .text-center h2.display-5.fw-bold.mb-3.text-white {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
    }

    .faq-section .text-center .lead.text-warning {
        font-size: 0.88rem !important;
    }

    /* container Bootstrap ≤575px = 100% lebar, padding tetap 15px */
    .faq-scroll-card {
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
        padding: 1.1rem !important;
        border-radius: 14px;
    }

    .faq-scroll-icon        { width: 54px; height: 54px; }
    .faq-scroll-icon i      { font-size: 1.5rem !important; }
    .faq-scroll-title       { font-size: 1rem !important; }
    .faq-scroll-text        {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
    }
    .faq-scroll-badge       { font-size: 0.72rem; padding: 0.3rem 0.8rem; }

    .faq-cta-card           { padding: 1.4rem 0.9rem !important; border-radius: 14px; }
    .faq-cta-title          { font-size: 1.15rem !important; }
    .faq-cta-text           { font-size: 0.85rem !important; }

    .btn-whatsapp-faq {
        width: 100%;
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem;
        min-width: 0;
    }
}


/* ============================================================
   MOBILE SANGAT KECIL (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {

    .faq-section .text-center h2.display-5.fw-bold.mb-3.text-white {
        font-size: 1.15rem !important;
    }

    .faq-scroll-card {
        min-width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        padding: 1rem !important;
    }

    .faq-scroll-title { font-size: 0.95rem !important; }
    .faq-scroll-text  { font-size: 0.78rem !important; }
}


/* ============================================================
   LANDSCAPE (tinggi < 500px) — 2 card sekaligus
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {

    .faq-section {
        padding: 2rem 0;
    }

    .faq-section .text-center h2.display-5.fw-bold.mb-3.text-white {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    .faq-section .text-center .lead.text-warning {
        font-size: 0.8rem !important;
    }

    .faq-scroll-wrapper {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .faq-scroll-content { gap: 1rem; }

    .faq-scroll-card {
        min-width: calc((100vw - 46px) / 2);
        max-width: calc((100vw - 46px) / 2);
        padding: 1rem !important;
        border-radius: 12px;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .faq-scroll-icon        { width: 48px; height: 48px; }
    .faq-scroll-icon i      { font-size: 1.35rem !important; }
    .faq-scroll-title       { font-size: 0.9rem !important; margin-bottom: 0.35rem !important; }
    .faq-scroll-title::after { margin: 0.4rem auto; }
    .faq-scroll-text        {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        margin-bottom: 0.8rem !important;
    }
    .faq-scroll-badge       { font-size: 0.7rem; padding: 0.28rem 0.7rem; }
}


/* ============================================================
   TOUCH DEVICE — nonaktifkan hover
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

    .faq-scroll-card:hover .faq-scroll-icon {
        transform: none;
        box-shadow: none;
        background: rgba(210, 105, 30, 0.2);
        border-color: #D2691E;
    }

    .faq-scroll-card:hover .faq-scroll-title::after {
        width: 60px;
        background: #D2691E;
    }
}

/* ========== FOOTER RESPONSIVE ========== */
/* ============================================================
   TABLET  (768px – 991px)
   ============================================================ */

@media (min-width: 768px) and (max-width: 991px) {

    .footer-modern {
        padding: 3rem 0 1.5rem;
        text-align: center;
    }

    .footer-modern [class*="col-"] {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-modern img {
        margin: 0 auto 1rem;
    }

    .footer-modern p.text-white-50 {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hapus garis h5 */
    .footer-modern h5::after { display: none; }
    .footer-modern h5        { padding-bottom: 0; }

    /* Links — centered, warna normal */
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
    }

    .footer-links a {
        justify-content: center;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.75);
    }

    /* Contact — semua centered, teks wrap */
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
        padding: 0;
        width: 100%;
    }

    .footer-contact li {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        text-align: center;
        width: 100%;
        word-break: break-all;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .footer-contact i {
        flex-shrink: 0;
    }

    .social-links {
        justify-content: center;
    }
}


/* ============================================================
   MOBILE  (≤ 767px)
   ============================================================ */

@media (max-width: 767px) {

    .footer-modern {
        padding: 2.5rem 0 1.5rem;
        text-align: center;
    }

    .footer-modern .row {
        flex-direction: column;
        align-items: center;
    }

    .footer-modern [class*="col-"] {
        width: 100%;
        max-width: 340px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
        padding: 0 0.75rem;
        box-sizing: border-box;
    }

    .footer-modern img {
        height: 46px;
        margin: 0 auto 0.9rem;
    }

    .footer-modern p.text-white-50 {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: center;
        width: 100%;
    }

    /* Heading */
    .footer-modern h5 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
        padding-bottom: 0;
        text-align: center;
        width: 100%;
    }

    /* Hapus garis h5 */
    .footer-modern h5::after { display: none; }

    /* Links — centered, warna normal tidak tebal */
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.55rem;
        padding: 0;
        width: 100%;
    }

    .footer-links a {
        font-size: 0.9rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.75);
        justify-content: center;
    }

    .footer-links a::before {
        color: var(--secondary-color, #D2691E);
    }

    /* Contact — centered, teks panjang wrap ke baris baru */
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
        padding: 0;
        width: 100%;
    }

    .footer-contact li {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        font-size: 0.88rem;
        text-align: center;
        width: 100%;
        /* email/nomor panjang otomatis turun baris */
        word-break: break-all;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .footer-contact i {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    /* Social */
    .social-links {
        justify-content: center;
        gap: 0.75rem;
        margin-top: 0.9rem;
    }

    .social-links a {
        width: 42px;
        height: 42px;
    }

    /* Divider */
    .footer-divider {
        margin: 1.8rem 0 1.2rem;
    }

    .footer-modern .text-center p {
        font-size: 0.84rem;
        padding: 0 0.5rem;
    }
}


/* ============================================================
   MOBILE KECIL  (≤ 575px)
   ============================================================ */

@media (max-width: 575px) {

    .footer-modern {
        padding: 2rem 0 1.2rem;
    }

    .footer-modern [class*="col-"] {
        max-width: 100%;
        margin-bottom: 1.6rem;
        padding: 0 0.5rem;
    }

    .footer-modern img          { height: 40px; }

    .footer-modern p.text-white-50 {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .footer-modern h5           { font-size: 1rem; margin-bottom: 0.9rem; }

    .footer-links a             { font-size: 0.86rem; }

    .footer-contact li          { font-size: 0.84rem; }

    .footer-contact i           { font-size: 0.9rem; }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .footer-divider             { margin: 1.5rem 0 1rem; }

    .footer-modern .text-center p { font-size: 0.8rem; }
}


/* ============================================================
   MOBILE SANGAT KECIL  (≤ 380px)
   ============================================================ */

@media (max-width: 380px) {

    .footer-modern [class*="col-"] {
        padding: 0 0.4rem;
        margin-bottom: 1.4rem;
    }

    .footer-modern img          { height: 36px; }

    .footer-modern p.text-white-50 { font-size: 0.8rem; }

    .footer-modern h5           { font-size: 0.95rem; }

    .footer-links a             { font-size: 0.82rem; }

    .footer-contact li          { font-size: 0.8rem; }

    .footer-contact i           { font-size: 0.85rem; }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}


/* ============================================================
   LANDSCAPE  (tinggi < 500px)
   ============================================================ */

@media (max-height: 500px) and (orientation: landscape) {

    .footer-modern {
        padding: 2rem 0 1rem;
        text-align: center;
    }

    /* 2 kolom berdampingan di landscape */
    .footer-modern .row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }

    .footer-modern [class*="col-"] {
        width: 50%;
        max-width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1.2rem;
        padding: 0 0.75rem;
        box-sizing: border-box;
    }

    .footer-modern h5 {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
        padding-bottom: 0;
    }

    .footer-modern h5::after    { display: none; }

    .footer-links a             { font-size: 0.82rem; }

    .footer-contact li {
        font-size: 0.82rem;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .footer-divider             { margin: 1.2rem 0 0.8rem; }

    .footer-modern .text-center p { font-size: 0.78rem; }
}


/* ============================================================
   TOUCH DEVICE — nonaktifkan hover
   ============================================================ */

@media (hover: none) and (pointer: coarse) {

    .footer-links a:hover {
        transform: none;
        color: rgba(255, 255, 255, 0.75);
    }

    .social-links a:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
}